home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Networking / MacTCP / MacTCP Developer Tools / MacTCP 2.0.2 MPW files / CIncludes / GetMyIPAddr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  758 b   |  37 lines  |  [TEXT/MPS ]

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     
  8. */
  9.  
  10. #ifndef __GETMYIPADDR__
  11. #define __GETMYIPADDR__
  12.  
  13. #ifndef __MACTCPCOMMONTYPES__
  14. #include <MacTCPCommonTypes.h>
  15. #endif
  16.  
  17. #define ipctlGetAddr        15            /* csCode to get our IP address */
  18.  
  19. #define GetIPParamBlockHeader     \
  20.     struct QElem *qLink;     \
  21.     short qType;             \
  22.     short ioTrap;             \
  23.     Ptr ioCmdAddr;             \
  24.     ProcPtr ioCompletion;     \
  25.     OSErr ioResult;         \
  26.     StringPtr ioNamePtr;     \
  27.     short ioVRefNum;        \
  28.     short ioCRefNum;        \
  29.     short csCode
  30.  
  31. struct GetAddrParamBlock {
  32.     GetIPParamBlockHeader;            /* standard I/O header */
  33.     ip_addr    ourAddress;            /* our IP address */
  34.     long    ourNetMask;            /* our IP net mask */
  35.     };
  36.  
  37. #endif